package day03;

//if结构的演示
public class IfDemo {
    public static void main(String[] args) {
        //1)满500打8折：
        double price = 500;
        if (price >= 500 && price<=800) {
            price *= 0.8;
        }
        System.out.println("你的最终消费金额是：" + price);

        double score = 95.5;
        if (score>=0 && score<=100){
            System.out.println("你的成绩:"+score+",  合法");
        }


    }
}
